<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			let m1 = new Map();
			//---------增--------------------------
			m1.set("name", "张三");
			m1.set("age", 20);
			m1.set("name", "李四");
			// console.log(m1);
			//---------查--------------------------
			console.log(m1.get("name"));
			console.log(m1.size);
			//---------删--------------------------
			m1.delete("name");
			m1.clear();
		</script>
	</body>
</html>
